package com.group3.pojo.receive;

import com.group3.controller.Validated.Add;
import com.group3.controller.Validated.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.util.List;
import java.util.Set;

/**
 * Students
 *
 * @author HY
 * 2021/06/18 18:25
 **/


/**
 * 用来实现管理员添加修改小组内成员的参数类
 * @Author HY
 * @Description
 * @Date 2021/07/10 10:06
 **/
@Data
@ApiModel("")
public class UpdateStudentToGroupReceive {

    @NotNull(message = "原小组id不能为空", groups = {Update.class, Add.class, Delete.class})
    @ApiModelProperty(name = "groupId", value = "原小组id", required = true)
    private Integer groupId;

    @NotNull(message = "新小组id不能为空", groups = {Update.class})
    @ApiModelProperty(name = "newGroupId", value = "更新后小组id", required = true)
    private Integer newGroupId;

    @NotNull(message = "学生学号集合不能为空", groups = {Update.class, Add.class, Delete.class})
    @ApiModelProperty(name = "studentIds", value = "学生学号集合", required = true)
    private Set<Integer> studentIds;
}